package com.utils;

import net.sf.json.JSONArray;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by head79 on 2017/7/10.
 */
public class JsonToClazz {

    public static<T> List<T> toClazz(Class<T> c, String... strs) throws IllegalAccessException, InstantiationException {
            int i =strs.length;
            List list = new ArrayList<T>();
          for (int y=0;y<strs.length;y++){
              T t =c.newInstance();
              list.add(t);
          }

        return  list;
    }

}
